/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_disp_his.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_DISP_HIS
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_disp_his.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_DISP_HIS::CTable_PPM_DISP_HIS( )
 :NPCRecordSet( )
{
  setTableName( "PPM_DISP_HIS" );
  prepareTable();
  prepareQuery();
 
  HIS_ID.setField( "HIS_ID", DATA_CHAR, 20, 1 );
  makeTableItem( HIS_ID );
  makeKeyItem( HIS_ID ); 
  ID.setField( "ID", DATA_CHAR, 20, 0 );
  makeTableItem( ID );
  DISP_NAME.setField( "DISP_NAME", DATA_CHAR, 512, 0 );
  makeTableItem( DISP_NAME );
  POS_X.setField( "POS_X", DATA_CHAR, 20, 0 );
  makeTableItem( POS_X );
  POS_Y.setField( "POS_Y", DATA_CHAR, 20, 0 );
  makeTableItem( POS_Y );
  WIDTH.setField( "WIDTH", DATA_CHAR, 20, 0 );
  makeTableItem( WIDTH );
  HEIGHT.setField( "HEIGHT", DATA_CHAR, 20, 0 );
  makeTableItem( HEIGHT );
  COLOR.setField( "COLOR", DATA_CHAR, 20, 0 );
  makeTableItem( COLOR );
  IS_NULLABLE.setField( "IS_NULLABLE", DATA_CHAR, 1, 0 );
  makeTableItem( IS_NULLABLE );
  READ_ONLY.setField( "READ_ONLY", DATA_CHAR, 1, 0 );
  makeTableItem( READ_ONLY );
  DISPLAY.setField( "DISPLAY", DATA_CHAR, 1, 0 );
  makeTableItem( DISPLAY );
  PRINT.setField( "PRINT", DATA_CHAR, 1, 0 );
  makeTableItem( PRINT );
  PRINT_NAME.setField( "PRINT_NAME", DATA_CHAR, 512, 0 );
  makeTableItem( PRINT_NAME );
  DISP_TYPE.setField( "DISP_TYPE", DATA_CHAR, 10, 0 );
  makeTableItem( DISP_TYPE );
  STATE.setField( "STATE", DATA_CHAR, 6, 0 );
  makeTableItem( STATE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
  MODIFY_DATE.setField( "MODIFY_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( MODIFY_DATE );
  REMARK.setField( "REMARK", DATA_CHAR, 1024, 0 );
  makeTableItem( REMARK );
}


CTable_PPM_DISP_HIS::CTable_PPM_DISP_HIS( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_DISP_HIS" );
  prepareTable();
  prepareQuery();
 
  HIS_ID.setField( "HIS_ID", DATA_CHAR, 20, 1 );
  makeTableItem( HIS_ID );
  makeKeyItem( HIS_ID ); 
  ID.setField( "ID", DATA_CHAR, 20, 0 );
  makeTableItem( ID );
  DISP_NAME.setField( "DISP_NAME", DATA_CHAR, 512, 0 );
  makeTableItem( DISP_NAME );
  POS_X.setField( "POS_X", DATA_CHAR, 20, 0 );
  makeTableItem( POS_X );
  POS_Y.setField( "POS_Y", DATA_CHAR, 20, 0 );
  makeTableItem( POS_Y );
  WIDTH.setField( "WIDTH", DATA_CHAR, 20, 0 );
  makeTableItem( WIDTH );
  HEIGHT.setField( "HEIGHT", DATA_CHAR, 20, 0 );
  makeTableItem( HEIGHT );
  COLOR.setField( "COLOR", DATA_CHAR, 20, 0 );
  makeTableItem( COLOR );
  IS_NULLABLE.setField( "IS_NULLABLE", DATA_CHAR, 1, 0 );
  makeTableItem( IS_NULLABLE );
  READ_ONLY.setField( "READ_ONLY", DATA_CHAR, 1, 0 );
  makeTableItem( READ_ONLY );
  DISPLAY.setField( "DISPLAY", DATA_CHAR, 1, 0 );
  makeTableItem( DISPLAY );
  PRINT.setField( "PRINT", DATA_CHAR, 1, 0 );
  makeTableItem( PRINT );
  PRINT_NAME.setField( "PRINT_NAME", DATA_CHAR, 512, 0 );
  makeTableItem( PRINT_NAME );
  DISP_TYPE.setField( "DISP_TYPE", DATA_CHAR, 10, 0 );
  makeTableItem( DISP_TYPE );
  STATE.setField( "STATE", DATA_CHAR, 6, 0 );
  makeTableItem( STATE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
  MODIFY_DATE.setField( "MODIFY_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( MODIFY_DATE );
  REMARK.setField( "REMARK", DATA_CHAR, 1024, 0 );
  makeTableItem( REMARK );
}

CTable_PPM_DISP_HIS::~CTable_PPM_DISP_HIS( )
{
    close();
}

